# -*- codeing = utf-8 -*-
from bs4 import BeautifulSoup
import requests
URL =  'https://www.qidian.com/rank/'
headers = {
            'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.25 Safari/537.36 Core/1.70.3877.400 QQBrowser/10.8.4506.400'
        }
resp = requests.get(url=URL,headers=headers)
resp.encoding = 'zh'
soup = BeautifulSoup(resp.text,'lxml')
#print(soup)
